package com.atguigu.headline.util;

import java.util.HashMap;
import java.util.Map;

import java.util.HashMap;
import java.util.Map;

class TrieNode {
    Map<Integer, TrieNode> children = new HashMap<>();
    TrieNode fail;
    boolean isEnd;
    String word;

    TrieNode() {
        this.fail = null;
        this.isEnd = false;
        this.word = null;
    }
}
